<?php
namespace app\index\controller;
use think\Db;
class Article extends Base
{   
    public function detail($id=0 ){
        $info = Db::name('article')->find($id);
        $data = [
            'info' => $info,
            'catinfo' => Db::name('article_cat')->find($info['cat_id']),
        ];
        return view('', $data);
    }
}